package com.mengdie.shuidi.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

public class PackageReceiver extends BroadcastReceiver {
    public PackageReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String bao = intent.getStringExtra("package");
        if (!TextUtils.isEmpty(bao)) {
            Intent intent2 = context.getPackageManager().getLaunchIntentForPackage(bao);
            context.startActivity(intent2);
        }
    }
}
